package com.clarence.dada.core.redis.operator.type;


import com.clarence.dada.core.redis.constants.RedisConstants;
import com.clarence.dada.core.redis.operator.AbstractRedisCacheOperator;
import org.springframework.data.redis.core.RedisTemplate;

import java.util.List;

/**
 * 角色绑定资源的缓存
 *
 * @author fengshuonan
 * @since 2021/7/29 23:29
 */
public class RoleResourceRedisCache extends AbstractRedisCacheOperator<List<String>> {

    public RoleResourceRedisCache(RedisTemplate<String, List<String>> redisTemplate) {
        super(redisTemplate);
    }

    @Override
    public String getCommonKeyPrefix() {
        return RedisConstants.ROLE_RESOURCE_CACHE_PREFIX;
    }

}